<?php

namespace app\api\controller;

use app\common\utils\UploadFile;

class UploadController
{
    public function one()
    {
        $upload = UploadFile::upload();
        if (!empty($upload['errMsg'])) {
            return apiError($upload['errMsg']);
        }
        return apiSuccess(data: $upload);
    }
}